html[theme="light"]:root {
    --messageBar-main-bg: rgba(0, 255, 255, 0.2);
    --messageBar-main-border: aqua;
    --messageBox-box-bg: white;
    --messageBox-scrollbar-bg: rgba(255, 255, 255, 0.2);
    --messageBox-scrollbar-border: aqua;
    --messageBox-scrollbar-thumb-border: aqua;
    --messageBox-scrollbar-thumb-bg: rgba(255, 255, 255, 0.5);
    --messageBox-message-color: black;
    --processBox-message-color: black;
    --processBox-processText-color: black;
    --processBox-processBar-bg: lightblue;
    --processBox-processBar-border: aqua;
    --processBox-process-bg: linear-gradient(to right, rgb(255, 0, 0), rgb(255, 255, 0), rgb(0, 255, 0));
    --waitingBox-message-color: black;
    --waitingBox-waitingBar-bg: lightgray;
    --waitingBox-waitingBar-border: aqua;
    --waitingBox-waiting-bg: aqua;
}

html[theme="dark"]:root {
    --messageBar-main-bg: rgba(255, 0, 255, 0.2);
    --messageBar-main-border: magenta;
    --messageBox-box-bg: black;
    --messageBox-scrollbar-bg: rgba(255, 0, 255, 0.2);
    --messageBox-scrollbar-border: magenta;
    --messageBox-scrollbar-thumb-border: magenta;
    --messageBox-scrollbar-thumb-bg: rgba(255, 0, 255, 0.5);
    --messageBox-message-color: white;
    --processBox-message-color: white;
    --processBox-processText-color: white;
    --processBox-processBar-bg: darkmagenta;
    --processBox-processBar-border: magenta;
    --processBox-process-bg: linear-gradient(to right, rgb(128, 0, 0), rgb(128, 128, 0), rgb(0, 128, 0));
    --waitingBox-message-color: white;
    --waitingBox-waitingBar-bg: gray;
    --waitingBox-waitingBar-border: magenta;
    --waitingBox-waiting-bg: magenta;
}

#messageBar-main {
    background-color: var(--messageBar-main-bg);
    border-bottom: 1px solid var(--messageBar-main-border);
    box-sizing: border-box;
    width: auto;
    min-width: 100px;
    max-width: 300px;
    height: auto;
    max-height: 500px;
    overflow-wrap: anywhere;
    overflow-x: hidden;
    overflow-y: auto;
    position: fixed;
    display:flex;
    flex-direction: column-reverse;
    right: 0;
    bottom: 0;
    z-index: 20;
}

#messageBar-main::-webkit-scrollbar {
    display: none;
}

#messageBar-main::-webkit-scrollbar-thumb {
    display:none;
}

#messageBar-main>.messageBox-box {
    margin: 0;
    padding: 0;
    background-color: var(--messageBox-box-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 200px;
    height: auto;
}

#messageBar-main>.messageBox-box>.messageBox-icon {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 16px;
    max-width: 64px;
    width: 25%;
    height: auto;
}

#messageBar-main>.messageBox-box>.messageBox-message {
    font-size: large;
    width: 100%;
    height: 100%;
    margin-top: 30px;
    margin-left: 10px;
    color: var(--messageBox-message-color);
}

#messageBar-main>.messageBox-box>.messageBox-message>.messageBox-closeButton {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    background-color: red;
    position: absolute;
    right: 5px;
    top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#messageBar-main>.processBox-box {
    margin: 0;
    padding: 0;
    background-color: var(--messageBox-box-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 200px;
    height: auto;
    overflow: hidden;
}

#messageBar-main>.processBox-box>.processBox-topBox {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#messageBar-main>.processBox-box>.processBox-topBox>.processBox-icon {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 16px;
    max-width: 64px;
    width: 25%;
    height: auto;
}

#messageBar-main>.processBox-box>.processBox-topBox>.processBox-message {
    font-size: large;
    width: 100%;
    height: auto;
    margin-left: 10px;
    color: var(--processBox-message-color);
}

#messageBar-main>.processBox-box>.processBox-bottomBox {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#messageBar-main>.processBox-box>.processBox-bottomBox>.processBox-processBar {
    width: 100%;
    height: 10px;
    position: relative;
    overflow: hidden;
    background-color: var(--processBox-processBar-bg);
    border: 2px solid var(--processBox-processBar-border);
    border-radius: 5px;
}

#messageBar-main>.processBox-box>.processBox-bottomBox>.processBox-processBar>.processBox-process {
    width: 0;
    height: 100%;
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
}

#messageBar-main>.processBox-box>.processBox-bottomBox>.processBox-processBar>.processBox-process>.processBox-process-bgColor {
    width: 0;
    height: 100%;
    background-image: var(--processBox-process-bg);
    border-radius: 5px;
}

#messageBar-main>.processBox-box>.processBox-bottomBox>.processBox-processText {
    width: auto;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow-wrap: break-word;
    color: var(--processBox-processText-color);
}

#messageBar-main>.waitingBox-box {
    margin: 0;
    padding: 0;
    background-color: var(--messageBox-box-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 200px;
    height: auto;
    overflow: hidden;
}

#messageBar-main>.waitingBox-box>.waitingBox-message {
    font-size: large;
    width: 100%;
    height: auto;
    margin-left: 10px;
    display:flex;
    flex-wrap: wrap;
    align-items:center;
    justify-content: center;
    color: var(--waitingBox-message-color);
}

#messageBar-main>.waitingBox-box>.waitingBox-waitingBar {
    width: 200px;
    margin:5px;
    height: 10px;
    position: relative;
    overflow: hidden;
    background-color: var(--waitingBox-waitingBar-bg);
    border: 2px solid var(--waitingBox-waitingBar-border);
    border-radius: 5px;
}

#messageBar-main>.waitingBox-box>.waitingBox-waitingBar>.waitingBox-waiting {
    position: relative;
    width: 5px;
    height: 100%;
    background-color: var(--waitingBox-waiting-bg);
    border-radius: 5px;
    box-shadow: 0 0 30px 30px var(--waitingBox-waiting-bg);
}